package com.sec.android.app.myfiles.module.abstraction;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;

import com.sec.android.app.myfiles.util.FileUtils;

public abstract class AbsMediaProviderImp extends AbsProviderImp {
    protected static final int FOLDER_FORMAT = 0x3001;

    public AbsMediaProviderImp(Context context) {
        super(context);
        // TODO Auto-generated constructor stub
    }

    @Override
    protected boolean needRefresh(Uri uri, FileRecord curRecord) {
        return false;
    }

    @Override
    protected void _refreshDB(Uri uri, FileRecord curRecord) {
    }

    @Override
    protected void _updateDB(SQLiteDatabase db, int oldVersion, int newVersion) {
    }

    @Override
    protected int _bulkInsert(Uri uri, ContentValues[] values) {
        return 0;
    }

    @Override
    protected Uri _insert(Uri uri, ContentValues values) {
        return null;
    }

    @Override
    protected int _delete(String selection, String[] selectionArgs) {
        return 0;
    }

    @Override
    protected int _update(ContentValues values, String selection, String[] selectionArgs) {
        return 0;
    }

    @Override
    protected Cursor _query(Uri uri, String[] projectionIn, String selection, String[] selectionArgs, String sortOrder) {
        return mContext.getContentResolver().query(FileUtils.MEDIA_PROVIDER_URI, projectionIn, selection, selectionArgs, sortOrder);
    }
}
